package com.easygem.controller.front;

import com.easygem.common.response.ResponseBean;
import com.easygem.front.service.ConsumeLogService;
import com.easygem.front.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author 廖思炜
 * @version 1.0
 * @className ConsumeLogController
 * @Description TODO
 * @date 2025/3/25 9:14
 */
@RestController
@RequestMapping("/comcentre/consumeLog")
public class ConsumeLogController {
    @Autowired
    private ConsumeLogService consumeLogService;
    @Autowired
    private DepartmentService departmentService;

    @PostMapping("/getConsumeLogs")
    public ResponseBean getConsumeLogs(@RequestBody Map<String, Object> map){
        return ResponseBean.success(consumeLogService.getConsumeLogs(map));
    }
    @PostMapping("/getSeatsConsumeLog")
    public ResponseBean getSeatsConsumeLog(@RequestBody Map<String, Object> map){
        return ResponseBean.success(consumeLogService.getSeatsConsumeLog(map));
    }
}
